package qiujing.online.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * Created by catt on 2018/12/7.
 */
@Data
public class Comment {

    private String id;
    //评论的用户的唯一标识
    private String userId;
    //评论的目标的唯一标识
    private String target;
    //评论的评分,比入5.0分，也可以作为等级，比如1星，2星
    private String score;
    //评论的内容
    private String content;
    //带图片，存储图片的地址
    private String[] img;
    //评论的时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    //存储赞同、顶、喜欢、推荐用户列表
    private List<Praise> praises;

    private List<Reply> replies;




}
